package com.ruoyi.pcj.domain;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import com.mashuai.utils.toolkit.core.msCrudbean.annotation.MsCrudBean;
import com.mashuai.utils.toolkit.core.msCrudbean.annotation.MsTbForderField;
import com.mashuai.utils.toolkit.core.msHandlebean.annotation.MsDictSelect;
import com.mashuai.utils.toolkit.core.msHandlebean.annotation.MsSaveCheck;
import com.ruoyi.common.core.domain.BaseEntity;
import com.ruoyi.pcj.constant.TipConstant;
import lombok.Data;

/**
 * 聊天室类型对象 pcj_chat_group_type
 *
 * @author ms
 * @date 2024-03-13
 */
@Data
@MsCrudBean(targetParam = "pcjChatGroupType",entityClazz = PcjChatGroupType.class)
@TableName("pcj_chat_group_type")
public class PcjChatGroupType extends BaseEntity {
    private static final long serialVersionUID = 1L;


    /**
     * $column.columnComment
     */
    @MsDictSelect(alias = "value")
    @TableId
    @TableField("id")
    private String id;


    /**
     * 删除标志（0代表存在 1代表删除）
     */
    @TableLogic
    @TableField("del_flag")
    private Integer delFlag;


    /**
     * 类型名称
     */
    @MsDictSelect(alias = "label")
    @MsSaveCheck(errorMsg = TipConstant.NAME_EXIST)
    @TableField("name")
    private String name;


    /**
     * 类型被使用的次数
     */
    @TableField("num")
    private Integer num;

    @MsTbForderField("seq_no")
    @TableField("seq_no")
    private Integer seqNo;

}
